package ui.college;

import javax.swing.JDialog;

@SuppressWarnings("serial")
public class PublishDialog extends JDialog {
	private String courseID;
	private PublishPanel publishPanel;
	
	public PublishDialog(PublishPanel publishPanel){		
		this.publishPanel =  publishPanel;
		courseID = this.publishPanel.getCourseID();
		setBounds(0, 0, 446, 360);
		add(publishPanel);
		setVisible(false);
		setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
		this.setModalityType(ModalityType.APPLICATION_MODAL);
	}
	
	public void setCourseID(String courseID){
		this.courseID = courseID;
		publishPanel.setCourseID(this.courseID);
	}
	
	public PublishPanel getPublishPanel(){
		return publishPanel;
	}
}
